package top.huhuiyu.springboot2.service;

import top.huhuiyu.springboot2.entity.*;

import java.util.List;

public interface NewsService {

    BaseResult delete(Integer id);

    BaseResult modify(TbNews news);

    BaseDataResult<TbNews> queryByKey(Integer id);

    BaseResult add(TbNews news);

    BaseDataResult<PageResult<List<TbNews>>> query(NewsQuery query, PageBean page);
}
